package com.homedo.odin.solution.model.request.pc.collect;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@ApiModel(description = "PC_收藏栏目")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class CollectColumnRequestBean {

    @ApiModelProperty(value = "栏目编号", required = true)
    @NotNull(message = "栏目编号不能为空")
    @Min(message = "栏目编号非法", value = 0)
    private Long columnId;

    @ApiModelProperty(value = "用户ID", required = true)
    @NotNull(message = "用户ID不能为空")
    @Min(message = "用户ID非法", value = 0)
    private Integer userId;

    @ApiModelProperty(value = "0：收藏 1：取消收藏", required = true)
    @NotNull(message = "收藏状态不能为空")
    @Range(min = 0, max = 1, message = "status参数非法")
    private Integer status;

}
